These two procedures manage the clipboard for Tk. The clipboard is
typically managed by calling TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddCCCClllleeeeaaaarrrr once, then calling
TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddAAAAppppppppeeeennnndddd to add data for any number of targets.
TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddCCCClllleeeeaaaarrrr claims the CLIPBOARD selection and frees any data items
previously stored on the clipboard in this application. It normally
returns TCL_OK, but if an error occurs it returns TCL_ERROR and leaves an
error message in _i_n_t_e_r_p->_r_e_s_u_l_t. TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddCCCClllleeeeaaaarrrr must be called before
a sequence of TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddAAAAppppppppeeeennnndddd calls can be issued.
TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddAAAAppppppppeeeennnndddd appends a buffer of data to the clipboard. The first
buffer for a given _t_a_r_g_e_t determines the _f_o_r_m_a_t for that _t_a_r_g_e_t. Any
successive appends for that _t_a_r_g_e_t must have the same format or an error
will be returned. TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddAAAAppppppppeeeennnndddd returns TCL_OK if the buffer is
successfully copied onto the clipboard. If the clipboard is not
currently owned by the application, either because TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddCCCClllleeeeaaaarrrr has
not been called or because ownership of the clipboard has changed since
the last call to TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddCCCClllleeeeaaaarrrr, TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddAAAAppppppppeeeennnndddd returns TCL_ERROR
and leaves an error message in _i_n_t_e_r_p->_r_e_s_u_l_t.
In order to guarantee atomicity, no event handling should occur between
TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddCCCClllleeeeaaaarrrr and the following TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddAAAAppppppppeeeennnndddd calls (otherwise
someone could retrieve a partially completed clipboard or claim ownership
away from this application).
TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddCCCClllleeeeaaaarrrr may invoke callbacks, including arbitrary Tcl scripts,
as a result of losing the CLIPBOARD selection, so any calling function
should take care to be reentrant at the point TTTTkkkk____CCCClllliiiippppbbbbooooaaaarrrrddddCCCClllleeeeaaaarrrr is